cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_app C)

include_directories(./ ./iot ./bridge ./lte ./mesh ./udp ./utils ./comm)

add_subdirectory(./iot)
add_subdirectory(./bridge)
add_subdirectory(./lte)
add_subdirectory(./mesh)
add_subdirectory(./udp)
add_subdirectory(./utils)

aux_source_directory(. SRCS)
set(OBJ_LIST cjson uci pthread ubus ubox iot bridge lte mesh udp_service utils)

add_executable(idc_app ${SRCS})

target_link_libraries(idc_app ${OBJ_LIST})
INSTALL(TARGETS idc_app RUNTIME DESTINATION bin)











